const BaseDto = require("./base.dto");
// 系统用户模块实体
module.exports = {
  loginDto: {
    username: {
      required: true,
      comment: "登录账号",
    },
    password: {
      required: true,
      comment: "登录密码",
    }
  },
  // 创建
  createDto: {
    username: {
      required: true,
      comment: "用户名",
    },
    password: {
      required: true,
      comment: "密码",
    },
    nickname: {
      required: true,
      comment: "昵称",
    },
    mobile: {
      required: true,
      comment: "手机号",
    },
    email: {
      comment: "邮箱",
    },
    status: {
      comment: "状态",
    },
  },
  // 编辑
  editDto: {
    id: {
      required: true,
      comment: "用户ID",
    },
    nickname: {
      comment: "昵称",
    },
    mobile: {
      comment: "手机号",
    },
    email: {
      comment: "邮箱",
    },
    status: {
      comment: "状态",
    },
  },
  // 分页列表
  pageDto: {
    ...BaseDto.pageDto,
    keyword: {
      comment: "关键字搜索",
    },
    status: {
      comment: "状态",
    },
  },
  // 删除
  delDto: {
    id: {
      required: true,
      comment: "用户ID",
    },
  },
  // 更新角色菜单
  updateRoleDto: {
    roleIds: {
      required: true,
      comment: "角色ID",
    },
    userId: {
      required: true,
      comment: "用户ID",
    }
  },
};
